package com.xixibaby.core;

import lombok.Getter;

import java.util.function.Supplier;

/**
 * 需要打断并且前台无感知返回默认数据，并且需要做异常提醒
 * @author tomj
 */
@Getter
public class SelectException extends RuntimeException {
    private Supplier<Object> supplier;
    private String msg;
    private String target;
    public SelectException(String msg,Supplier<Object> supplier){
        this.supplier = supplier;
        this.msg = msg;
        this.target = "";
    }

    public SelectException(String target,String msg,Supplier<Object> supplier){
        this.supplier = supplier;
        this.msg = msg;
        this.target = "";
    }



}
